package com.shenglue.ssi.dao;

import java.util.List;

import com.shenglue.ssi.domain.BuyBackMain;

public interface BuyBackMainDao {

	/**
	 * 查询所有入库退货单主表信息
	 */
	public List<BuyBackMain> selectAllBuyBackMain();

	/**
	 * 按条件查询 入库退货单主表信息
	 */
	public List<BuyBackMain> selectBuyBackMainByCond( BuyBackMain buyBackMain );

	/**
	 * 增加入库退货单主表记录
	 */
	public boolean saveBuyBackMain(BuyBackMain buyBackMain);

	/**
	 * 删除入库退货单主表记录
	 */
	public boolean deleteBuyBackMain(int buyBackId);

	/**
	 * 修改入库退货单主表记录
	 */
	public boolean updateBuyBackMain(BuyBackMain buyBackMain);

	/**
	 * 为修改，根据 Id 查一条 入库退货单主表记录
	 */
	public BuyBackMain getOneBuyBackMainForUpdate( int buyBackId );
}
